public class Test {

    public static void main(String[] args) {
        int[] array = {1,2,3,34};
        System.out.println(array.length);

        int[] array1 = new int[3];
        array1[0] = 1;
        array1[1] = 30;
        array[2] = 40;
        System.out.println(array1.length);

        int[] array2 = new int[] {1,2,345,45,546};
        System.out.println(array2.length);

    }

}
